package com.prs.crm.domain.store;
/**
 * @author 兰小刚
 * @version 
 * 类说明
 */
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.stock.Product;
@Entity
@Table(name = "stock_storeoutdetail")
public class StoreOutDetail extends BaseEntity {
	
	private static final long serialVersionUID = 2625159668537269733L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	private String  name;
	
	@ManyToOne
	private Product product;
	
	@ManyToOne
	private StoreOut storeout;
	
	/**
	 * 库房
	 */
	@ManyToOne
	private StoreRoom room;
	
	private int storeoutNum;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public StoreOut getStoreout() {
		return storeout;
	}

	public void setStoreout(StoreOut storeout) {
		this.storeout = storeout;
	}

	public int getStoreoutNum() {
		return storeoutNum;
	}

	public void setStoreoutNum(int storeoutNum) {
		this.storeoutNum = storeoutNum;
	}

	public StoreRoom getRoom() {
		return room;
	}

	public void setRoom(StoreRoom room) {
		this.room = room;
	}
	
	
}
